import request from '@/utils/request'
// 获得企业管理分页
export function getCompanyPage(query) {
  return request({
    url: '/member/company/page',
    method: 'get',
    params: query
  })
}
// 根据职位获得简历投递记录分页
export function getCheckInfoByJob(data) {
  return request({
    url: '/member/curriculum-vitae-send-record/admin/checkInfoByJob',
    method: 'post',
    data: data
  })
}

//  各职位投递列表
export function getResumeInfoByJob(query) {
  return request({
    url: '/member/curriculum-vitae-send-record/admin/getpageByJob',
    method: 'get',
    params: query
  })
}
//  企业账号变更审核列表
export function checkCompanyPhoneChange(data) {
  return request({
    url: '/system/user-change-mobile-recordrecord/page',
    method: 'post',
    data: data
  })
}
// 运营审核企业手机变更接口
export function authenticationUserPhone(data) {
  return request({
    url: '/system/user-change-mobile-recordrecord/authenticationUserPhone',
    method: 'put',
    data: data
  })
}
//  所有简历投递记录分页
export function checkResumeFromJob(data) {
  return request({
    url: '/member/curriculum-vitae-send-record/admin/checkResumeFromJob',
    method: 'POST',
    data: data
  })
}
//  收藏简历
export function saveCollect(data) {
  return request({
    url: '/member/collect-notes/saveCollect',
    method: 'POST',
    data: data
  })
}
//  添加备注
export function saveNotes(data) {
  return request({
    url: '/member/collect-notes/saveNotes',
    method: 'POST',
    data: data
  })
}
//  获取历史备注
export function getNotesPage(data) {
  return request({
    url: '/member/collect-notes/getNotesPage',
    method: 'POST',
    data: data
  })
}
//  人才夹-学生列表和简历列表
export function getStudentInfoPage(data) {
  return request({
    url: '/member/student/getStudentInfoPage',
    method: 'POST',
    data: data
  })
}


//  所有回收站招聘职位分页
export function recoveryMemberJobPage(query) {
  return request({
    url: '/member/job/recoveryMemberJobPage',
    method: 'GET',
    params: query
  })
}
//  招聘职位回收站(批量还原)
export function updateBatchRecoveryMemberJob(data) {
  return request({
    url: '/member/job/updateBatchRecoveryMemberJob',
    method: 'put',
    data: data
  })
}
//  招聘职位回收站(根据ID查看)
export function getRecoveryMemberJobById(id) {
  return request({
    url: '/member/job/getRecoveryMemberJobById?id=' + id,
    method: 'GET',
  })
}
// 获得招聘企业管理分页 （包含发布职位数量等）
export function getHireCompanyPage(query) {
  return request({
    url: '/recruitCompany/companyList',
    method: 'get',
    params: query
  })
}
// 获得认证后企业管理列表
export function getAuthedCompanyList(query) {
  return request({
    url: '/member/company/authenticationlist',
    method: 'get',
    params: query
  })
}
// 获得待发布(审核)招聘职位分页
export function getJobWaitExamineList(data) {
  return request({
    url: '/member/job/admin/getJobWaitPage',
    method: 'post',
    data: data
  })
}
// / 获得已发布（审核）招聘职位分页
export function getJobExamineDoneList(data) {
  return request({
    url: '/member/job/admin/jobExamineDoneList',
    method: 'post',
    data: data
  })
}
// 获得招聘企业分页
export function getHireCompanyList(query) {
  return request({
    url: '/recruitCompany/companyList',
    method: 'post',
    data: query
  })
}
// 获得企业数据
export function getCompanyInfo(query) {
  return request({
    url: '/member/company/oper-get',
    method: 'get',
    params: query
  })
}
// 审核职位
export function examinJob(data) {
  return request({
    url: '/member/job/admin/examinJob',
    method: 'post',
    data: data
  })
}
//  获得企业管理详情
export function getCompanyDetail(id) {
  return request({
    url: '/recruitCompany/checkCompany?id=' + id,
    method: 'get'
  })
}
//  面试邀约列表，展示邀约记录
export function getInterviewInvitePage(data) {
  return request({
    url: '/member/interview-invite/oper-page',
    method: 'post',
    data: data
  })
}
//  修改招聘企业状态
export function modefyCompanyStatus(data) {
  return request({
    url: '/recruitCompany/setCompanyStatus',
    method: 'post',
    data: data
  })
}
//  招聘企业置顶
export function setCompanyTopStatus(data) {
  return request({
    url: '/recruitCompany/setCompanyTop',
    method: 'post',
    data: data
  })
}
// /admin-api/member/job/admin/jobDetail 获取单个招聘职位
export function getJobDetail(id) {
  return request({
    url: '/member/job/admin/jobDetail?id=' + id,
    method: 'get'
  })
}
// 获取所有企业的快捷数据（企业名称、id）
export function getAllCompanyList(query) {
  return request({
    url: '/recruitCompany/admin/allCompanyList',
    method: 'get',
    params: query
  })
}
// 招聘职位-刷新单个职位
export function updateJobDate(data) {
  return request({
    url: '/member/job/admin/updateJobDate',
    method: 'post',
    data: data
  })
}
// 批量置顶/取消置顶
export function multiSetJobTop(data) {
  return request({
    url: '/member/job/admin/setJobTopStatus',
    method: 'put',
    data: data
  })
}
//  批量修改职位状态
export function multiSetJobStatus(data) {
  return request({
    url: '/member/job/admin/setJobStatus',
    method: 'put',
    data: data
  })
}
// 批量删除职位
export function cancelProcessInstance(ids) {
  return request({
    url: '/member/job/admin/deleteJob',
    method: 'DELETE',
    data: {
      ids
    }
  })
}
// 更新单个职位
export function updateSingleJob(data) {
  return request({
    url: '/member/job/oper-update',
    method: 'put',
    data: data
  })
}
//  删除单个招聘职位
export function deleteSingleJob(id) {
  return request({
    url: '/member/job/delete?id=' + id,
    method: 'DELETE'
  })
}
// 创建单个职位
export function createJob(data) {
  return request({
    url: '/member/job/create',
    method: 'post',
    data: data
  })
}
// 获得认证后企业列表 (带有企业介绍信息)
export function getAuthedCompany() {
  return request({
    url: '/member/company/authenticationlist',
    method: 'get'
  })
}
// 获得认证后企业列表 (不带有企业介绍信息)
export function getAuthedNoRecommendCompany() {
  return request({
    url: '/member/company/authenticationRecruilist',
    method: 'get'
  })
}
// 运营端登录，通过账号获取租户id 参数username
export function getIdByUsername(query) {
  return request({
    url: '/system/tenant/get-id-by-username',
    method: 'get',
    params: query
  })
}
// 人才推荐 post
export function sendStudentRecommend(data) {
  return request({
    url: '/member/curriculum-vitae-send-record/sendStudentCurriculumVitae',
    method: 'post',
    data: data
  })
}
// 查看所有运营用户
export function getAdminUser(data) {
  return request({
    url: '/member/operate/user-page',
    method: 'post',
    data: data
  })
}
// 创建运营用户
export function createAdminUser(data) {
  return request({
    url: '/member/operate/user-create',
    method: 'post',
    data: data
  })
}
// 删除运营用户
export function deleteAdminUser({ id }) {
  return request({
    url: '/member/operate/user-delete?id=' + id,
    method: 'delete'
  })
}
// 修改运营用户
export function updateAdminUser(data) {
  return request({
    url: '/member/operate/user-update',
    method: 'put',
    data: data
  })
}
//  获取学生用户简历
export function getStudentResume(id) {
  return request({
    url: '/member/student-curriculum-vitae/get?id=' + id,
    method: 'get'
  })
}
// 投递简历副本
export function getResumeByCopy(id) {
  return request({
    url: '/member/curriculum-vitae-send-record/get?id=' + id,
    method: 'get'
  })
}
// 更新用户简历
export function updateStudentCurriculumVitae(data) {
  return request({
    url: '/member/student-curriculum-vitae/update',
    method: 'put',
    data: data
  })
}
// 创建用户简历
export function createStudentCurriculumVitae(data) {
  return request({
    url: '/member/student-curriculum-vitae/create',
    method: 'post',
    data: data
  })
}
// 运营端最新接口，获取职位详情
export function getJobDetailInfo(id) {
  return request({
    url: '/member/job/oper-get?id=' + id,
    method: 'get'
  })
}
//  批量刷新接口 +todo
export function updateJobDateBach(data) {
  return request({
    url: '/admin/updateJobDateBach',
    method: 'post',
    data: data
  })
}
// 

//  招聘职位 - 置顶设置保存
export function updateRankingStatus(data) {
  return request({
    url: '/member/job/updateRankingStatus',
    method: 'put',
    data: data
  })
}

// 职位置顶排序列表

export function getHotJobList(data) {
  return request({
    url: '/member/job/getHotJobList',
    method: 'get',
    params: data
  })
}

//member/job/updateRankingJobSort
export function updateRankingJobSort(data) {
  return request({
    url: '/member/job/updateRankingJobSort',
    method: 'put',
    data
  })
}
// 
// 取消最新职位置顶
export function updateJobNew(data) {
  return request({
    url: '/member/job/updateJobNew',
    method: 'get',
    params: data
  })
}

// 取消热门职位置顶
export function updateJobHot(data) {
  return request({
    url: '/member/job/updateJobHot',
    method: 'get',
    params: data
  })
}

// 取消最新企业置顶
export function updateCompanyNew(data) {
  return request({
    url: '/recruitCompany/updateCompanyNew',
    method: 'get',
    params: data
  })
}

// 取消热门企业置顶
export function updateCompanyHot(data) {
  return request({
    url: '/recruitCompany/updateCompanyHot',
    method: 'get',
    params: data
  })
}

// /recruitCompany/getHotCompanyList
export function getHotCompanyList(data) {
  return request({
    url: '/recruitCompany/getHotCompanyList',
    method: 'get',
    params: data
  })
}

// 、/recruitCompany/updateRankingCompanySort
export function updateRankingCompanySort(data) {
  return request({
    url: '/recruitCompany/updateRankingCompanySort',
    method: 'put',
    data
  })
}